/*
* @Author: qinuoyun
* @Date:   2019-10-29 15:43:22
* @Last Modified by:   qinuoyun
* @Last Modified time: 2019-11-26 11:01:32
*/

.cloud-tools {
  display: flex;
  height: 100%;

  .ct-handle {
    position: fixed;
    right: 0;
    top: 0;
  }

  .ct-main {
    width: 260px;
    height: 100%;
  }

  .ct-layout {
    flex: 1;
    height: 100%;
    background-color: Yellow;
    position: relative;
  }

  .ct-sidebar {
    width: 300px;
    height: 100%;
  }

  .ct-main-resources {
    height: 40%;
    background-color: Wheat;
  }



  .ct-class-form {
    .el-tabs__content {
      height: calc(100% - 29px);
      padding: 0;

      .ct-class-form-tool {
        height: 25px;
        background-color: #ccc;
      }

      .el-tab-pane {
        height: 100%;
      }

      .ct-class-pane {
        height: calc(100% - 25px);
      }

      .el-scrollbar {
        height: 100%;

        .el-scrollbar__wrap {
          overflow-x: hidden;
        }
      }
    }

    .el-tabs__item {
      padding: 0 15px;
      height: 30px;
      box-sizing: border-box;
      line-height: 30px;
      display: inline-block;
      list-style: none;
      font-size: 12px;
      font-weight: 500;
      color: #303133;
      position: relative;
      width: 86.5px;
    }

    .el-tabs--border-card {
      box-shadow: none;

      &>.el-tabs__content {
        padding: 0;
      }
    }
  }

  .ct-main-controls {
    height: 60%;
    background-color: Violet;
  }

  .ct-layout-canvas {
    position: absolute;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background-color: rgb(84, 92, 100);
    z-index: 99;
    left: 20px;
    top: 20px;

    .canvas-col {}

    .canvas-components {
      border: dashed 1px #409EFF !important;
    }

  }

  .ct-sidebar-library {
    height: 30%;
    background-color: Plum;
  }

  .ct-sidebar-attribute {
    height: 30%;
    background-color: Pink;
  }

  .ct-sidebar-layer {
    height: 40%;
    background-color: Peru;
  }

  .canvas {
    width: 800px;
    height: 500px;
    margin: 20px auto;
    background-color: #fff;
    position: relative;
    .el-row {
      // height: 100%;
    }

    .canvas-col {
      // height: 100%;
      border: dashed 1px #d9d9d9;
      border-right: none;
    }

    .canvas-col:hover,
    .canvas-checked {
      border: dashed 1px #409EFF !important;
    }

    .canvas-col .canvas-checked-action {
      display: none;
    }

    .canvas-checked .canvas-checked-action,
    .canvas-col:hover .canvas-checked-action {
      display: block;
    }

    .canvas-checked-action {
      position: absolute;
      right: 0px;
      top: -3px;
      text-align: right;
      z-index: 10;
    }

    .el-col-selected {
      border: solid 1px #409EFF;
    }

    .el-col-selected:last-child {
      border-right: solid 1px #409EFF;
    }
  }

}
